package publisher;

import java.sql.Connection;
import java.sql.DriverManager;

public abstract class DAO {

	static Connection conn = null;
	
	 static {
		
		try{
			String userName = "root";
	        String password = "root";
	        String url = "jdbc:mysql://localhost/ars1";
	        Class.forName ("com.mysql.jdbc.Driver").newInstance ();
	        conn = DriverManager.getConnection (url, userName, password);
	        System.out.println ("Database connection established");
		}catch(Exception ex){
			ex.printStackTrace();
			
		}
		
	}

}
